/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.model.domain.usuario;

import com.model.domain.persona.Personal;
import util.usuario.seguridad.Condicion;

/**
 *
 * @author Rdelacruz
 */
public class CondicionActualizarOperadorCampo 
implements Condicion
{
    private Personal p;

    public CondicionActualizarOperadorCampo(Personal p) {
        this.p = p;
    }

    @Override
    public boolean validar(Object obj) {
        Personal p2 = (Personal) obj;
        return p.getDni().equals(p2.getDni());
    }
    
}
